home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / dosutils / jckey_io.zip / KEY.HLP < prev    next >
Text File  |  1996-10-05  |  3KB  |  72 lines

  1. =========================================================================
  2.  key.hlp - Help for Key.exe
  3. =========================================================================
  4.  
  5. Some ideas:
  6.  
  7. -usually serves to get rid of "opening messages" (like "press return to
  8.  start program", etc). Or to start a program with certain features which
  9.  are not available as command-line parameters. Eg. with a program
  10.  for address books, write a batch-file which starts the program and
  11.  immediately starts searching for %1, by "pressing" the keys via
  12.  key.exe
  13.  
  14. -writing a batch to archive %1 with pkzip/arj/etc. and at the end
  15.  including:
  16.    key w "del %1"
  17.  Eg. with doskey you can then simply press ESC if the screen-output
  18.  indicates that s.th went wrong with pkzip/arj, etc., otherwise
  19.  simply press RETURN to run the del %1 command.
  20.  
  21.  Thus giving "default" commands which only require to press
  22.  return or ESC. If pressing Return when running doskey, they
  23.  will then also be available via doskey for repeated usage, etc.
  24.  
  25. -DOSKEY
  26.   Note that if a command is too long to fit into the keyboard buffer,
  27.   with doskey running, you could eg. try defining a doskey macro,
  28.   and put this macro in the buffer instead,
  29.   eg:
  30.      doskey testecho=echo ...This is a very long command
  31.      key w "testecho"
  32.   After running the above batch file outputting "testecho" as a
  33.   suggestion, eg. press RETURN/ENTER to run "testecho" or ESC for
  34.   doskey to "reset" the command-line.
  35.  
  36.   You might even use a "temporary" macro, i.e. if after having
  37.   entered s.th once, it shouldn't "stay" as a doskey macro, try
  38.   eg:
  39.      @echo off
  40.      doskey tmpEcho=echo ...This is a very long command $t doskey tmpEcho=
  41.      key w "tmpEcho" 7181
  42.   After running the above batch file - If you then press CURSOR-UP,
  43.   and RETURN/ENTER the above "temporary" doskey macro "tmpEcho" has
  44.   already been "deleted".
  45.  
  46.   See "help doskey" for more info on doskey.
  47.   (
  48.     $t separates two commands, and
  49.       doskey tmpEcho=
  50.     "un-does" a doskey macro, by setting it to "nothing".
  51.   )
  52.  
  53.  
  54. MORE INFO
  55.   For more info on Doskey usage, and on Dos-programming, eg. a program
  56.   which uses Doskey - see also files DOSKEY*.* in my uploaded file
  57.   LOADER.ZIP at GO BPASCAL, library section 17 "TP/BP DOS Prog"
  58.   ((
  59.     BPASCAL being an "old go word" to what is currently Go Delphi
  60.   ))
  61.  
  62.  
  63.  
  64. COPYRIGHT, etc.
  65.   Key.exe written using Borland's TurboPascal for DOS.
  66.  
  67.   (Copyright)Armin Schmitt at 100552.1041@compuserve.com
  68.   Nov-1994
  69.  
  70.  
  71. v960901
  72.